package com.denny.devdemo.sectionlist;

import android.app.Activity;
import android.os.Bundle;
import android.view.LayoutInflater;

import com.denny.devdemo.R;

public class SectionListActivity extends Activity{
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setTitle("SectionList");
		
		SectionListView listView = new SectionListView(this);
		listView.setPinnedHeaderView(LayoutInflater.from(this).inflate(R.layout.item_composer_header, listView, false));
		SectionListAdapter adapter = new SectionListAdapter(this,Data.getAllData());
		listView.setAdapter(adapter);
		listView.setOnScrollListener(adapter);
		setContentView(listView);
	}
}
